<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function add(a, b) {
            return a + b;
        }
        console.log(add(2, 4))
        var sum = (a, b) => a + b
        console.log(sum(3, 2))

        const person = {
            name: "jack",
            age: 30,
            language: ["java", "javascript", 'css'],
            hello: (person) => {
                console.log(`hello,我是${person.name},我的年龄是${person.age},我会的技能是${person.language}`)
            }
        }
        person.hello(person)
    </script>
</body>

</html>